#define _CRT_SECURE_NO_WARNINGS
#include "CQ.h"
void test()
{
	MyCircularQueue* mcq = myCircularQueueCreate(5);
	myCircularQueueEnQueue(mcq, 1);
	myCircularQueueEnQueue(mcq, 2);
	myCircularQueueEnQueue(mcq, 3);
	myCircularQueueEnQueue(mcq, 4);
	myCircularQueueEnQueue(mcq, 5);
	myCircularQueueDeQueue(mcq);
	int t = myCircularQueueFront(mcq);
	int b = myCircularQueueRear(mcq);
	printf("%d %d\n", t, b);
	myCircularQueueEnQueue(mcq, 6);
	myCircularQueuePrint(mcq);
	myCircularQueueFree(mcq);
}

int main()
{
	test();
	return 0;
}